load("@rules_cc//cc:defs.bzl", "cc_library")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "polygon_collect",
    srcs = [
        "polygon_collect.cc",
    ],
    hdrs = [
        "polygon_collect.h",
    ],
    deps = [
        "@opencv//:opencv",
        "//base/common:base_common",
        "//air_service/modules/perception-usecase/usecase/common:tensor",
        "//air_service/modules/perception-usecase/usecase/common:math",
    ],
)

cc_library(
    name = "visualization_internal",
    srcs = [
        "visualization_internal.cc",
    ],
    hdrs = [
        "visualization_internal.h",
    ],
    deps = [
        "//air_service/modules/perception-usecase/usecase/common:tensor",
        "//air_service/modules/proto:perception_cc_pb",
        "//base/common:base_common",
        ":window_wrapper",
        ":polygon_collect",
    ],
)

cc_library(
    name = "window_wrapper",
    srcs = [
        "window_wrapper.cc",
    ],
    hdrs = [
        "window_wrapper.h",
    ],
    deps = [
        "//base/io:base_io",
        "//air_service/modules/perception-usecase/usecase/common:factory",
        "//air_service/modules/perception-usecase/usecase/common:util",
        "//air_service/modules/perception-usecase/usecase/base:runner",
        "//air_service/modules/perception-usecase/usecase/base:config_manager",
        "//air_service/modules/perception-usecase/usecase/common:math",
        "//air_service/modules/perception-usecase/proto:roi_lane_cc_pb",
        "//air_service/modules/proto:perception_cc_pb",
        "@yaml_cpp//:yaml_cpp",
        "@opencv//:opencv",
        "@com_github_google_glog//:glog",
        "@eigen//:eigen",
    ],
)